<?php
/**
 * Minhlog 后台首页控制器
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 *
 * @category   Controller
 * @package    Backend
 * @copyright  Copyright (c) 2009-2010 Minh.Shu@gmail.com
 * @license    New BSD License
 * @author     Minh.Shu
 * @version    $Id: IndexController.php 2 2010-01-17 13:49:08Z Minh.Shu $
 *
 */

class Backend_IndexController extends Minh_Controller_Action
{
    /**
     * @todo 默认首页为博客各项指标统计图
     */
    public function indexAction ()
    {
        if (!isset($_SESSION['Minhlog']['storage']->user_id)) {
            $this->_redirect('/backend/user/login/');
        }else{
            $this->_redirect('/backend/list/article/');
            exit;
        }

        $this->view->menuSelected = 'false';
        echo $this->view->render('index.phtml');
    }
}